package com.cqtczh.qhd.driver.vo;

import java.util.UUID;

import com.cqtczh.qhd.driver.utils.StringUtils;

import android.app.ActionBar;
import android.content.Context;
import android.telephony.TelephonyManager;


public class JsonRequest {
	String id;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	Client client;
	Object data;

	public static JsonRequest getInit() {
		
		Client ct = new Client();
		ct.setCaller("xqapp");
		ct.setOs("android");
		ct.setVer(android.os.Build.VERSION.RELEASE);
		ct.setUuid(UUID.randomUUID().toString().replaceAll("-", ""));

		JsonRequest jr = new JsonRequest();
		jr.setId(StringUtils.getTodayDetail() + "" + Math.round(Math.random() * 1000));
		//jr.setId("12345555");
		jr.setClient(ct);
		return jr;

	}

}
